/**
  ******************************************************************************
  * @author     Chris
  * @since      2024/6/10 12:38
  *
  * @file       hd_oled_protocol.c
  * @brief      OLED Communication Protocol hardware driver.
  *
  * @note       This file contains the OLED Communication Protocol hardware
  *             driver for the OLED.
  *
  * @warning    None.
  ******************************************************************************
  * Change Logs:
  *   Date           Author       Notes
  *   2024-06-10     Chris        the first version
  *
  ******************************************************************************
  */

#include "hd_oled_protocol.h"

static void OLED_ProtocolInit(OLEDProtocol *this) {

}

static void OLED_write(OLEDProtocol *this,
                       uint8_t salveAddress, uint16_t regAddress, uint8_t *dat, uint8_t len) {

}

static OLEDProtocol *build() {
    OLEDProtocol *oledProtocol = malloc(sizeof(OLEDProtocol));

    Driver_add(oledProtocol, GEN_PERM);

    oledProtocol->init   = &OLED_ProtocolInit;
    oledProtocol->write  = &OLED_write;

    return oledProtocol;
}

const struct OLEDProtocolClass OLEDProtocolBuilder = {.build = &build};



